<TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="2">
		<TR class="N-MainBGCOLOR">
				   <TD align=center width="5%">
				   <input type="Submit" class="button2" name="btnClickSubmit" value="<%#Approve%>" onclick="javascript:BtnClicked(this)">
				   </TD>
				   <TD align=center width="5%">
				   <input type="Submit" class="button2" name="btnClickSubmit" value="<%#Reject%>" onclick="javascript:BtnClicked(this)">
				   </TD>
				   <TD align=center width="15%">
				   <select name="selActionOutput" class="select1">
				   </select>
				   &nbsp;
				   <input type="Submit" class="button2" name="btnClickSubmit" value="<%#Send Back%>" onclick="javascript:BtnClicked(this)">
				   </TD>
				   <input type="hidden" name="actionOutPut" value="" >
				   <Input type="hidden" name="<%#OutputVariables1%>" value="Test">
				</TD>
			</TR>
</Table>


<Script>
var ApproveAlias = "<%#approvealias%>"
var RejectAlias = "<%#rejectalias%>"

var outputValues= "<%#sendbackstring%>"

 function PopulateListBoxValues(outputValues)
 {
   var outputValuesArr = outputValues.split(',')
	for (var i=0;i<outputValuesArr.length;i++)
		{
			if(outputValuesArr[i] != "")
			{
			   NewOpt =  new Option;
			   NewOpt.value = outputValuesArr[i];
               NewOpt.text = outputValuesArr[i];
               document.getElementsByTagName("select")["selActionOutput"].options[i] =  NewOpt;
			  }
		}
       document.getElementsByTagName("select")["selActionOutput"].options[0].selected = true;

 }
 function BtnClicked(clickObj)
 {

  if(clickObj.value =="Send Back")
  {

   document.getElementsByTagName("input")["actionOutPut"].value =  document.getElementsByTagName("select")["selActionOutput"].value;
   document.getElementsByTagName("input")["hiddenActionOutput"].value =  document.getElementsByTagName("select")["selActionOutput"].value;

  }
  else
  {
   document.getElementsByTagName("input")["actionOutPut"].value = clickObj.value;
   document.getElementsByTagName("input")["hiddenActionOutput"].value = clickObj.value;

  }
 } PopulateListBoxValues(outputValues);
</script>

